<template>
  <div class="custom_user_info_aside">
    <div class="custom_user_info_aside_list">
      <div
        class="custom_user_info_aside_list_item"
        v-for="(sitem, index) in item.data"
        :key="'userinfoaside_index_' + index"
        :style="{ width: 100 / item.data.length + '%' }"
      >
        <router-link :to="{ name: sitem.router, params: sitem.params }">
          <article>
            <header>
              <h1>{{ sitem.count }}</h1>
              <p>{{ sitem.title }}</p>
            </header>
          </article>
        </router-link>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  name: "userInfoAside",
  props: {
    item: {
      type: Object,
      default() {
        return {};
      },
    },
  },
  data() {
    return {};
  },
};
</script>
<style lang="less">
@base: 23.44rem;
.custom_user_info_aside {
  .custom_user_info_aside_list {
    display: flex;
    .custom_user_info_aside_list_item {
      margin: 0 (5 / @base);
      &:last-child {
        a {
          p {
            border: 0;
          }
        }
      }
      a {
        font-size: (12 / @base);
        h1 {
          font-size: (12 / @base);
          font-weight: 400;
          padding: (5 / @base) 0;
        }
        p {
          padding: (5 / @base) 0;
          border-right: (1 / @base) solid #efefef;
          font-size: (12 / @base);
          color: #333;
        }
      }
    }
  }
}
</style>
